package com.yyf.springboot2.service;

import com.yyf.springboot2.entity.TUser;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yyf
 * @since 2019-05-29
 */
public interface TUserService extends IService<TUser> {

    TUser getUserByUsername(String userName);

    Integer updateLastTimeAndLoginCountAndLastIPById(Integer id, String ip);

    TUser getUserInfoById(Integer id);

    int updatePassAndSalt(String password, String salt,Integer userId);

    TUser getUserAmount(Integer uid);

    Integer updateMoneyById(Map<String,Object> map);

    TUser getUserInfoByUsername(String userName);

    Integer moneyScoreChange(Map<String,Object> map);

    Integer moneyScoreTransfel(Map<String,Object> map);
}
